package com.lzj.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lzj.admin.pojo.Goods;
import com.lzj.admin.query.GoodsQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 商品表 Mapper接口
 * @author 蒋中昊
 * @since 2024
 */
@Mapper
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {

    Goods  getGoodsInfoById(Integer gid);
    IPage<Goods>  queryGoodsByParams(IPage<Goods> page, @Param("goodsQuery") GoodsQuery goodsQuery);
}
